#
# Be sure to run `pod lib lint LKPrivateBaseKit.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'LKPrivateBaseKit'
  s.version          = '0.1.1'
  s.summary          = 'LKPrivateBaseKit. 一个私有基础组件库，包含扩展，网络请求，语言设置等众多字库'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC
                      
  s.homepage         = 'https://gitee.com/leikee/LKPrivateBaseKit'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'leike' => 'leike88n@163.com' }
  s.source           = { :git => 'https://gitee.com/leikee/LKPrivateBaseKit.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

#  s.source_files = 'LKPrivateBaseKit/Classes/**/*'
  #如果不选模块。默认为 Core
  s.default_subspec = "Core"
  
  s.ios.deployment_target = '11.0'
  s.swift_version = '5'


  # Core 子模块
  s.subspec 'Core' do |sp|
     sp.source_files = 'LKPrivateBaseKit/Classes/Core/**/*'
  end
  
  # Extension 扩展 子模块
  s.subspec 'Extension' do |sp|
     sp.source_files = 'LKPrivateBaseKit/Classes/Extension/**/*'
     sp.dependency "LKPrivateBaseKit/Core"
     sp.dependency "LKPrivateBaseKit/Struct"
     sp.dependency 'CryptoSwift' #, '~>1.7.1'
  end
  
  
  # APINetwork 子模块
  s.subspec 'APINetwork' do |sp|
    sp.source_files = 'LKPrivateBaseKit/Classes/APINetwork/APIRequest/**/*'
    sp.dependency "LKPrivateBaseKit/Extension"
   # 网络请求
   #因为项目中使用了Moya这个框架，其对Alamofire有依赖5.0以上，但是从Alamofire 5.5.0版本开始便使用了 Concurrency 库来支持并发编程，但是Concurrency.framework仅支持iOS13以上系统版本，因此需要针对Alamofire需要特别指定版本号 5.4.4
   #Alamofire 支持iOS12 可能要降级到5.4.4    当前 Alamofire (5.7.1)
    sp.dependency "Moya"  #, '~>15.0.0'
    sp.dependency 'HydraAsync'  #, '~>2.0.6' #异步处理
    sp.dependency 'SwiftyJSON' #, '~>5.0.1'
  end
  
  
  # APINetwork 子模块
  s.subspec 'APINetwork+RX' do |sp|
    sp.source_files = 'LKPrivateBaseKit/Classes/APINetwork/APINetwork+RX/*'
    sp.dependency "LKPrivateBaseKit/Extension"
    sp.dependency "LKPrivateBaseKit/APINetwork"
    sp.dependency 'RxSwift' #, '~>6.5.0'
    sp.dependency "Moya/RxSwift" #,, ">= 14.0.0"
    sp.dependency "Moya"  #, '~>15.0.0'
    sp.dependency 'HydraAsync'  #, '~>2.0.6' #异步处理
    sp.dependency 'SwiftyJSON' #, '~>5.0.1'
  end
  
  
  # Localize 语言 子模块
  s.subspec 'Localize' do |sp|
     sp.source_files = 'LKPrivateBaseKit/Classes/Localize/*'
  end
  
  
  # MCToast 子模块
  s.subspec 'MCToast' do |sp|
     sp.source_files = 'LKPrivateBaseKit/Classes/MCToast/*'
     sp.dependency "LKPrivateBaseKit/Core"
     sp.resource_bundles = {
        'ToastBundle' => ['LKPrivateBaseKit/Classes/MCToast/Assets/*']
     }
  end
  
  
  
  
  # UI 子模块
  s.subspec 'BaseUI' do |sp|
    sp.source_files = 'LKPrivateBaseKit/Classes/BaseUI/**/*'
    sp.dependency "LKPrivateBaseKit/Core"
    sp.dependency "LKPrivateBaseKit/Extension"
    sp.dependency "Then" #, '~> 3.0.0'      #语法糖
    sp.dependency "UIAdapter" #, '~> 1.2.1' #屏幕比例适配
    sp.dependency "SnapKit" #, '~> 5.6.0'   #自动布局
  end
  

  
  # Tool 子模块
  s.subspec 'Tool' do |sp|
     sp.source_files = 'LKPrivateBaseKit/Classes/Tool/*'
  end
  


  # Struct 子模块
  s.subspec 'Struct' do |sp|
     sp.source_files = 'LKPrivateBaseKit/Classes/Struct/*'
     sp.dependency "UIAdapter" #, '~> 1.2.1' #屏幕比例适配
  end
  

  

  
  
  
  
  
  # s.resource_bundles = {
  #   'LKPrivateBaseKit' => ['LKPrivateBaseKit/Assets/*.png']
  # }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'
end
